<#import "include/main.ftl" as m />

<@m.main>
	<ul>
		<li><a href="#balance">Balance</a></li>
	</ul>
	
	<div id="balance">
	
		<form method="post" action="update_balance.html">
		<input type="hidden" name="userId" id="userId" value="${userId}" />
	
		<table cellpadding="0" cellspacing="0" class="fVert">
			
			<tr>
				<th>Moneda</th>
				<th>Balance</th>
			</tr>
			
			<#list balance as b>
			
				<tr>
					<td>${b.currencyCode}</td>
					<td>
						<input type="text" name="currency_${b.currencyId}" value="${b.balanceFormatted}" />
					</td>
				</tr>
			
			</#list>
			
			<tr>
				<td colspan="2" style="text-align: right;">
					<button>Actualizar balance</button>
				</td>
			</tr>
			
		</table>
		
		</form>
		
	</div>
</@m.main> 
